package com.leyou.common.vo;


import com.leyou.common.enums.ExceptionEnum;
import lombok.Data;

/**
 * @author:yanjizhw@163.com
 * @date:2019-09-23 14:00
 * 描述:
 * @since:1.0.0
 */
@Data
public class ExceptionResult {

    private int status;
    private String message;
    private Long timestamp;

    public ExceptionResult(ExceptionEnum em){
        this.status = em.getCode();
        this.message = em.getMsg();
        this.timestamp = System.currentTimeMillis();
    }
}
